A category, \(\mathcal{C}\)
Need to specify a collection of objects, \(Ob(\mathcal{C})\)
For every two objects c and d, one specifies a set \(\mathcal{C}(c,d)\) called morphisms from c to d
This set is called the hom-set and morphism is a shorthand for homomorphism
For every object c one specifies a morphism \(id_c \in \mathcal{C}(c,c)\) called the identity morphism
For every pair of morphisms \(c \xrightarrow{f} d\) and \(d \xrightarrow{g} e\), one specifies a morphism \(c \xrightarrow{f;g}e\) called the composite of f and g
Furthermore, these must satisfy two conditions:
unitality: composing with identities does not change anything
associativity: \((f;g);h = f;(g;h)\)
The natural numbers as a free category: \(\boxed{\overset{\bullet}{z}\circlearrowleft s}\)
There are infinitely many paths, in bijection with the natural numbers.
This is a category with one object, also called a monoid.
The composition operation corresponds to the addition operation.
Unitality and associativity give us the usual constraints on a monoid.
The free category \(3 := \mathbf{Free}(\boxed{\overset{v_1}\bullet \xrightarrow{f_1}\overset{v_2}{\bullet}\xrightarrow{f_2}\overset{v_3}{\bullet}})\) has three objects and six morphisms. Give the morphisms names and write out the composition operation in a 6x6 matrix. Which are the identities?
Identities are 1,2,3
\(\circ\) | 1 | 2 | 3 | f1 | f2 | f12 |
---|---|---|---|---|---|---|
1 | 1 | f1 | f12 | |||
2 | 2 | f2 | ||||
3 | 3 | |||||
f1 | f1 | f12 | ||||
f2 | f2 | |||||
f12 | f12 |